import { PageDot } from '@/dto/page.dto'

export class CreateModuleDto {
  moduleName: string
  path: string
  parentId: string
  typeOrder: number
  projectCode: string
  modelClassify?: string
  templateID?: string
  factoryId?: string
  flowId?: string
  listModelId?: string
  useSence?: string
  moduleCode?: string
  icon?: string
  redirect?: string
  frameSrc?: string
  statisticsUrl?: string
  quickNavigationIcon?: string | { url: string }[]
  menuType?: number
  bgType?: number
  bgColor?: string
  typeStatus?: number
  visible?: number
  isExt?: number
  extMeta?: string
}

export class UpdateModuleDto extends CreateModuleDto {
  moduleId: string
}

export class UpdateModuleStatusDto {
  moduleId: string
  status: number
}


export class CreateUsinghandledefDto {
  handleCode: string
  handleName: string
  handleOrder: string
  modelId?: string
  moduleId?: string
  handleType?: number
  modelClassify?: string
  dataModelId?: string
  client?: number
  summary?: string
}

export class UpdateUsinghandledefDto extends CreateUsinghandledefDto {
  id: number
}

export class GetRoleModulesDto {
  roleId: string
  client: string
}

export class UpdateModulesDto {
  checkedKeys: string[]
  client: number
}


